from flask import Blueprint, jsonify

api_blueprint = Blueprint('api', __name__, url_prefix='/api')
auth_blueprint = Blueprint('auth', __name__, url_prefix='/auth')
personal_blueprint=Blueprint('personal', __name__,url_prefix='/personal')

# route register must
from .auth import *
from .auth.api import *

from .personal.api import *
from .personal import *

def blueprint_register(app):
    app.register_blueprint(api_blueprint)
    app.register_blueprint(auth_blueprint)
    app.register_blueprint(personal_blueprint)

@api_blueprint.route('/test')
def test():
    return render_template('pages/test.html')
